package com.sls.web.manager.common;

/**
 * @description 字符串去空格处理
 * @author GeShuangxi
 * @date 2012-11-15
 */
public class FilterStringSpaces {

	/**
	 * 判断字符串是否有空格
	 * 
	 * @param str
	 * @return
	 */
	public static String checkStringHasSpace(String str) {
		String result = "";

		if (str != null && !("".equals(str))) {
			result = str.trim();
		} else {
			result = str;
		}

		return result;
	}

}
